import request from "@/utils/request"

// 分页查询配置报文管理 GET /bTopicMain/queryBTopicMainList
export function queryBTopicMainList(data) {
  return request({
    url: "/bTopicMain/queryBTopicMainList",
    method: "get",
    params: data
  })
}

// 分页查询配置报文管理
export function queryPageTopicMain(data) {
  return request({
    url: "/bTopicMain/queryPageTopicMain",
    method: "get",
    params: data
  })
}

// 查询配置报文详情
export function queryOneTopicMain(data) {
  return request({
    url: "/bTopicMain/queryOneTopicMain",
    method: "get",
    params: data
  })
}

// 查询协议名称
export function queryAllAgreement(data) {
  return request({
    url: "/bAgreement/queryAllAgreement",
    method: "get"
  })
}

// 保存配置
export function deactivateBTopicMain(data) {
  return request({
    url: "/bTopicMain/deactivateBTopicMain",
    method: "post",
    data: data
  })
}

//
export function queryNetDevicePage(data) {
  return request({
    url: "/bTopicMain/queryNetDevicePage",
    method: "get",
    params: data
  })
}

//
export function updateTopicMain(data) {
  return request({
    url: "/bTopicMain/updateTopicMain",
    method: "post",
    data: data
  })
}

export function queryGatewayBindingAllDevice(data) {
  return request({
    url: "/bAgreement/queryGatewayBindingAllDevice",
    method: "get",
    params: data
  })
}

